home previous
next contentsShout3D™ 2.0 - User Guide
|
Your Shout3D installation comes with two custom applets that provide user interactivity features of wide applicability. For many projects, these applets will offer all the features you need. Because these applets are extended from the basic Shout3DApplet, they necessarily support all of its parameters, most of which can be set as Publishing Options in the Shout3D Wizard.
NOTE: You can learn a great deal about Java programming with the Shout 3D API by studying the source code for these two applets in the applets directory
The ExamineApplet makes it easy for users to examine objects from all sides. Drag the mouse horizontally and vertically to rotate the camera around the object. To zoom in or out, hold down the <CONTROL> key and drag vertically. To pan (move the object left, right, up or down) hold down the <SHIFT> key and drag. The ExamineApplet is used in many of the demos in your Shout3D installation.
By default, the ExamineApplet computes the center of a bounding box containing the entire scene, and uses it as the center of rotation. It also computes an initial viewing distance that captures all objects in the scene.
You can choose between two interactive dragging styles. The default "by speed" option allows the user to control the speed of animated zooming, rotation and panning, for a smooth "power steering" feel. The examine_demo demo illustrates this dragging style. The optional "by offset" approach provides a more manual feel, with mouse drags directly effecting any movement or rotation. The examine_demo_offset_style demo illustrates this alternative dragging style. In fact, you can compare both styles in one applet in the examineWithButtonsDemo.
The standard settings for the ExamineApplet can't possibly make sense for all scenes, but you're not stuck with "one size fits all." You can easily customize the ExamineApplet to a particular scene by setting the following parameters directly in the <APPLET> tag. (Note how using applet parameters makes it easy to tailor a general applet to a specific use by experimenting with different values.)
dragStyle
rotationCenter
<param name="rotationCenter" value="5.7 66.23 0">
backupSlack
bySpeedZoomDragFactor
bySpeedPanDragFactor
bySpeedRotateDragFactor
byOffsetZoomDragFactor
byOffsetPanDragFactor
byOffsetRotateDragFactor
The WalkApplet allows users to navigate through the 3D space of a scene. Dragging the mouse vertically moves the camera forward and backwards. Dragging horizontally rotates the camera around its vertical axis. Holding the SHIFT key down as you drag doubles your walk speed. To look around in all directions from a stopped position, use the right mouse button (or left mouse button + CTRL key). When you release the right button (or the CTRL key), the camera snaps back to a straight-ahead view.
The WalkApplet comes complete with collision detection (so users won't walk through walls) and optional terrain following (to walk up and down stairs and ramps).
Check out the following demos:
Like the ExamineApplet, the WalkApplet is designed to be customized to the needs of any particular project by setting the following parameters directly in the <APPLET> tag.
avatarHeight
terrainFollowing
is parameter is set to true (the default), the camera will maintain this height above the terrain in the y direction of its local coordinate system. If terrain following is off, the camera will maintain a constant height in the y direction of its local coordinate system. In either case, the local coordinate system need not be the same as the world coordinate system. (You could walk up walls!).
avatarRadius
collisionHeight
forwardDragSpeed
rotateDragSpeed
terrainFollowing
gravity
maxClimbAngle
Copyright� 1999-2000, Eyematic Interfaces, Inc.